how to evaluate logarithmic expression